package test;

public class PersonArr {
	public static void main(String[] args) {
		SuperStar sup = new SuperStar();
		System.out.println(sup.toString());
	}

}

class Person1 {
	@Override
	public String toString() {
		return "Person1 [name=" + name + ", sex=" + sex + ", age=" + age + "]";
	}

	String name;
	String sex;
	int age;

}

class SuperStar extends Person1 {
	public SuperStar() {
		this.name = "Tom";
		this.sex = "male";
		this.age = 19;
	}
}